#!/bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd $BASE_DIR || exit;

shopt -s expand_aliases
[ "$(uname)" == "Darwin" ] &&  alias date='gdate'

start=2024-04-01
end=2024-11-19
while ! [[ $start > $end ]]; do
    echo [$(date)] exporting $start
    DATE="$start"

    echo $DATE

    start=$(date -d "$start + 1 day" +%F)
done

echo